<template>
    <div ref="el">
        
    </div>
</template>
<script>
    export default {
        setup(p) {
            let el=ref(null)
            // console.log('pp---:',p.src)
            
            onMounted(()=>{
                fetch(p.src).then(async (res)=>{
                    let txt=await res.text()
                    // console.log('txt--:',txt)
                    // console.log('el--:',el.value,el.value.parentNode)
                    el.value.parentNode.innerHTML=txt;
                    // alert(txt)
                })
                // console.log('el--:',el.value)
            })
            
            return {
                el
            }


        }
    }
</script>